﻿using System;
using System.Collections;
using System.Collections.Generic;
using Robotlegs.Bender.Extensions.EventManagement.API;
using Robotlegs.Bender.Extensions.EventManagement.Impl;

public class ScoreService : InterfaceScoreService
{
	[Inject]
	public IEventDispatcher dispatcher { get; set; }

	public void OnReceiveScore()
	{

	}

	public void OnRequestScore(string url)
	{
		UnityEngine.Debug.Log("向服务器发送请求");

		int score = UnityEngine.Random.Range(0, 100);
		dispatcher.Dispatch(new ServiceEvent(ServiceEvent.Type.REQUEST,score));
	}

	public void UpdateScore(string url, int score)
	{

	}
}
